package pa3;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface Host extends Remote {
	
	public static int CHECK_WAIT_TIME = 5000;
	public static String IS_ALIVE = "alive";
	public static int CHECK_SCHEDULE_INTERVAL = 5000;
	
	public void checkHost(Host caller, String callerName) throws RemoteException;
	
	public void checkResponse(String hostName) throws RemoteException;

	public String getName() throws RemoteException;
	
	public void addOtherHost(Host otherHost, String otherHostName) throws RemoteException;

	public void removeOtherHost(String detectedHostName) throws RemoteException;

}
